import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);
const store = new Vuex.Store({
    state: {
        loading: false,
    },
    mutations: {
        ifLoading(state, flag) {
            state.loading = flag
        }
    }
});

export default store;